php remove dashes from string

66

php remove dashes from string -

//replace dashes (-) with spaces ( )  
$string="text-with-dashes";
//php string replace
$test = str_replace("-", " ", $string);

Comments

Submit
0 Comments